<table>
    <tr>
        <td>序号</td>
        <td>名称</td>
        <td>房屋数量</td>
        <td>栋数</td>
        <td>建筑面积</td>
        <td>建成时间</td>
        <td>地址</td>
    </tr>

    @for(l of allLouYuan(); track l.louYuanID){
    <tr>
        <td>{{ $index + 1 }}</td>
        <td>{{ l.mingCheng }}</td>
        <td>{{ l.fangWuShuLiang }}</td>
        <td>{{ l.dongShu }}</td>
        <td>{{ l.jianZhuMianJi }}</td>
        <td>{{ l.jianChengShiJian | date : 'yyyy-MM-dd'}}</td>
        <td>{{ l.diZhi }}</td>
        <td>
            <button (click)="editLouYuan(l)">编辑</button>
            <button (click)="deleteLouYuan(l)">删除</button>
        </td>
    </tr>
    }
</table>